<template>
    <div class="person">
        
    </div>
</template>


<script lang="ts" setup name="Person">
    import {ref,defineExpose} from 'vue'
    //数据
    let a=ref(1)
    let b=ref(2)
    defineExpose({a,b}) //App中可以获得a,b
</script>

<style scoped>
    .person{
        background-color: skyblue;
        box-shadow: 0 0 10px;
        border-radius: 10px;
        padding: 20px;
    }
    button{
        margin: 0 5px;
    }
</style>